﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;

namespace VisualBounds.Imaging.PaintBucket.UI
{
    public class vProgressbar : ProgressBar
    {
        private vProgressStates _ProgressState;
        [Browsable(true), Category("Appearance"), Description("Indicates which progressbar state to use.")]
        public vProgressStates ProgressState
        {
            get
            {
                return _ProgressState;
            }
            set
            {
                _ProgressState = value;
                Windows.SendMessage(this.Handle, 0x400 + 16, (int)_ProgressState, 0);
            }
        }


    }

    public enum vProgressStates
    {
        Normal = 0x0001,
        Error = 0x0002,
        Pause = 0x0003,
    }
}
